<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.hs.pre.model.PreEntry" %>
<%@ page import="com.hs.pre.page.PageUtil" %>
<%@ page import="com.hs.utils.*" %> 
<%@ page import="com.hs.core.db.*" %>
<%@ page import="com.hs.*" %>
<%
PreEntry entry = null;
String preId = request.getParameter("preId");
try { 
		DBOperator dbo = DatabaseConnection.getDBOperator(); 
		if(null != preId && !"".equals(preId)){
			List data = dbo.select(HsBase.getAnsiSqlMap().get("preinfo.select_one")+"",new Object[]{new Integer(preId)});
			if(data.size()>0)
				entry = new PreEntry((Map)data.get(0));
			}
	} catch (Exception e) { 
		e.printStackTrace();
	}
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>"> 
    <title>方泉信息服务平台-方剂查看</title> 
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page"> 
	<script src='<%=basePath%>app/js/json.js'></script>
    <script src='<%=basePath%>dwr/interface/manager.js'></script>
    <script src='<%=basePath%>dwr/engine.js'></script>
    <script src='<%=basePath%>dwr/util.js'></script> 
   
	<style type="text/css">
        table {
            border: 1px solid black;
            border-collapse: collapse;
        }
        
        table thead tr th {
            border: 1px solid black;
            padding: 3px;
            background-color: #cccccc;
        }
        
        table tbody tr td {
            border: 1px solid black;
            padding: 3px;
        }
    </style> 
    <script type="text/javascript">
     function editPre(preId){
        window.location.href="<%=path%>/admin/manage.do?action=edit&preId="+preId; 
     }
    </script>
  </head>
  <body>
  <br>
  <br>
  <center> 
<table cellSpacing=0 align=right cellPadding=0 border=0 width="100%">
<tr height="5px"><td colspan=4><br>方剂【<%=entry.getFangm()%>】</td></tr>
<tr>
<td width="20%">
方名
</td>
<td width="30%" colspan=3><%=entry==null?"":entry.getFangm() %>
<input type="hidden" value="<%=entry==null?"":entry.getPreId() %>" name="preId" >
</td>
 
</tr> 
<tr>
<td width="20%">
方剂编号
</td>
<td width="30%"><%=entry==null?"":entry.getId() %>
</td>
<td width="20%">
别名
</td>
<td><%=entry==null?"":entry.getBiem() %>
</td>
</tr> 
<tr>
<td width="20%">
处方来源
</td>
<td width="30%">
<%=entry==null?"":entry.getChufly() %>
</td>
<td width="20%">
加减
</td>
<td><%=entry==null?"":entry.getJiaj() %>
</td>
</tr> 
 
<tr>
<td width="20%">
功效
</td>
<td width="30%"><%=entry==null?"":entry.getGongx() %>
</td>
<td width="20%">
药物组成
</td>
<td><%=entry==null?"":entry.getYaowzc() %>
</td>
</tr> 
<tr>
<td width="20%">
主治
</td>
<td width="30%"><%=entry==null?"":entry.getZhuz() %>
</td>
<td width="20%">
制备方法
</td>
<td><%=entry==null?"":entry.getZhibff() %>
</td>
</tr> 

<tr>
<td width="20%">
用法用量
</td>
<td width="30%"><%=entry==null?"":entry.getYongfyl() %>
</td>
<td width="20%">
用药禁忌
</td>
<td><%=entry==null?"":entry.getYongyjj() %>
</td>
</tr> 
<tr>
<td width="20%">
临床应用
</td>
<td width="30%"><%=entry==null?"":entry.getLincyy() %>
</td>
<td width="20%">
药理作用
</td>
<td><%=entry==null?"":entry.getYaolzy() %>
</td>
</tr> 
<tr>
<td width="20%">
各家论述
</td>
<td width="30%"><%=entry==null?"":entry.getGejls() %>
</td>
<td width="20%">
备注
</td>
<td><%=entry==null?"":entry.getBeiz() %>
</td>
</tr> 
<tr>
<td colspan=2 align="right"><input name="button" type="button" class="buttom"  onclick="editPre('<%=entry.getPreId() %>');" value="编辑"></td>
<td colspan=2><input name="button" type="button" class="buttom"  onclick="window.close();" value="关闭"></td>
 
</tr>
</table>       
    </center> 
  </body>
</html>
